package com.swt.draw.controller;

import com.swt.draw.entity.Fla55;
import com.swt.draw.service.Fla55Service;
import com.swt.draw.vo.BaseResponse;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName
 * @Description TODO
 * @Author Administrator
 * @Date 2019/10/24 0024 19:33
 * @Version 1.0
 **/
@RestController
@RequestMapping("/fla55")
public class Fla55Controller {

    @Resource
    private Fla55Service fla55Service;

    @PostMapping("/add")
    public BaseResponse addFla55(Fla55 fla55){
        BaseResponse response = new BaseResponse();
        fla55Service.addFla55(fla55);
        response.setCode(1001);
        response.setDesc("success");
        return response;
    }
}
